import { RouteRecordRaw } from "vue-router";

/**
 * 常量路由
 */
export const constantRoutes:RouteRecordRaw[] = [
    {
        path:'/',
        name:"table",
        component:() => import("../layout/index.vue"),
        redirect:"/desc",
        children:[
            {
                path:'/desc',
                name:"Desc",
                component:() => import("../views/table/desc/index.vue"),
            },
            {
                path:'/config',
                name:"Config",
                component:() => import("../views/table/config/index.vue"),
            },
            {
                path:'/export',
                name:"Export",
                component:() => import("../views/table/export/index.vue"),
            }
        ]
    },
    {
        path:'/404',
        name:"404",
        component:() => import("../views/404/index.vue"),
    },
    {
        path:'/:pathMatch(.*)',
        name:"any",
        redirect:"/404"
    },
]

